Repository navigation
Sync ako/mxcli: Edm.Date imports not localized, MDL-AGENT02 by Agent Editor version, widget describe version note, Project pane on large apps - #1985
Merged
Conversation
… apps The desktop app keeps only the first 4 MB of a plugin command's output. project-tree printed indented JSON, and on a large app (4.5 MB) the pane parsed half a document and failed with "Unterminated string in JSON at position 4194304". The tree is now one line (56% of the indented size on TestApp), and parseTree reports output at the limit as cut off instead of as a JSON parse error. Closes #2601 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011oK82qrr1WnXxq1eRn7qRJ
The properties and the MDL example come from one version: the package installed in the project with -p, mxcli's embedded template without. Shown with no note, an example from Maps 3.2.2 (`advanced: false`) read as valid for 5.0.0, which has no such property. A Note line (versionNote in JSON) names the package and version, and says to describe again after installing another; the project's widget definitions refresh on their own when a package changes (#2155), so widget init is not needed. Closes #2586 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011oK82qrr1WnXxq1eRn7qRJ
check -p and exec refused a create agent with a Model and no SelectedModel on an Agent Editor 1.x project, which does not need one. Measured from each package's extension code (mx check runs no Agent Editor checks, not even on 2.6.0): Studio Pro's AE018 guard first appears in 1.3.0, and the startup import reads selectedModel from 2.2. One verdict keyed on AgentEditorCommons' version now serves both phases: nothing before 1.3, the AE018 error from 1.3 to 2.1, both from 2.2. The project phase was silent on 1.3-2.1 and now reports AE018 there. Without a project nothing changes. Closes #2294 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011oK82qrr1WnXxq1eRn7qRJ
…24rqgv fix: project-tree prints compact JSON so the Project pane loads large apps
…24rqgv fix: widget describe says which widget version its example holds for
…24rqgv fix: MDL-AGENT02 follows the project's Agent Editor version
…y twice (closes #1983) The page-side association-path resolver read the final segment as a bare attribute name and prefixed it with the hop's destination even when it was already qualified, so `sort by Mod.Card_Task/Mod.Task.LastActivityAt` was stored as `Mod.Task.Mod.Task.LastActivityAt`. check and exec passed; mxbuild aborted loading the project with ArgumentNullException. A qualified final segment is now read like an `Assoc/Module.Entity/Attr` step: the hop's end or an ancestor keeps the hop, a specialization becomes its DestinationEntity, any other entity is unresolved (sort by refuses it). The resolver is shared with data grid columns, text templates and inputs. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ied twice `sort by Mod.Card_Task/Mod.Task.LastActivityAt` was stored as `Mod.Task.Mod.Task.LastActivityAt`: resolveAssociationPathFrom qualified the final segment with the hop's destination whether or not it was qualified already. check and exec passed, mxbuild crashed loading the project (ArgumentNullException, no CE), and re-exec reported the page unchanged. The resolver also serves DataGrid 2 columns, dynamic-text parameters and input bindings. A qualifier naming the destination or an entity it inherits from is now accepted and stripped; any other entity leaves the path unresolved. Closes #2671 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011oK82qrr1WnXxq1eRn7qRJ
`create external entities from …` mapped Edm.Date with Edm.DateTime and Edm.DateTimeOffset, localized, and mx check refused every such attribute: CE4598 "Cannot localize this attribute. The remote type of this attribute is 'Edm.Date', which does not support Localize". Studio Pro's import sets Localize off. Edm.Date now maps to `DateTime not localized`. The single-entity `create or modify external entity` rewrite carries a stored LocalizeDate when the statement does not state one (#1373), which would have kept the true an earlier build wrote; the remote type now decides it after that carry, so a re-import repairs those entities. The bulk import rebuilds attributes from the contract and repairs them already. Measured with mx check 11.14.0 on a project made by `mxcli new`: the old build gives one CE4598 on the Edm.Date attribute, the fixed build 0 errors, and re-running either import with the fixed build clears the old project's error. Fixes #2676 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011oK82t3TXiBNijmizS5cpZ
A page whose widget does `show page` to the page itself (a list of peers, each opening the same page) failed to build unless an old copy was stored: "failed to build page: failed to build widget: failed to resolve page: page not found: M.Driver". execCreatePageV3 builds the page before it creates it, and resolvePageRef looked the name up among the stored pages. The report named `drop page`, but a first `create page` of such a page failed the same way; only an in-place rewrite worked. The page's ID is now decided before the build (the first stored page's ID on a rewrite, as the write already used, else a new one), and resolvePageRef answers the page's own name with it. The reference check had the same blind spot: `--references` and MDL-PAGE01 called a page's reference to itself a forward reference when the script created the page again later, so the reporter's drop + create script was refused before exec. A statement's reference to the page it creates is now never a forward one; a reference to another page created later still is. Measured on a project made by `mxcli new --version 11.14.0`: the old build refuses the bug-test script at the reference check, the fixed build prints Created / Dropped / Created on each of two runs, and mx check reports 0 errors. Fixes #2677 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011oK82t3TXiBNijmizS5cpZ
…er release (#2681) #2644 and #2652 patched git merge and marketplace package around a defect in the shared resolver: docker.ResolveMxForVersion tried PATH before an exact-version install or cache, so another version's mx on PATH won for every caller. - ResolveMxForVersion takes localMxForVersion (exact install or cache) first; PATH and the other fallbacks keep their order behind it. This covers docker check/build, the Java dependency sync's fallback and the marketplace reference project. - The commands that write the user's model with no override flag go through mxForModelWrite, which refuses another release (*mxReleaseError): the marketplace post-install repairs are skipped with their manual commands; install --allow-format-change's module-import is refused with the setup hint. - fix --mx refuses an mx outside the named path (pathWithin), instead of the resolver's fallback to PATH. - git merge's release check now shares mxReleaseProblem. Tests: docker/resolve_exact_before_path_2681_test.go (fails before the reorder; control: no exact install still takes PATH) and mx_model_writer_2681_test.go (with the guards disabled all three fail). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QiMsnXa9crge2qnSk9S7Zn
Import Edm.Date as a DateTime that is not localized
…r stores the entity twice Integrates upstream PR mendixlabs#1984 (fixes mendixlabs#1983, mirrored as #2671). Merged without conflicts. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QiMsnXa9crge2qnSk9S7Zn
Let a page that shows itself be created after drop page
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QiMsnXa9crge2qnSk9S7Zn
The conformance gate refuses the deprecated 'create or replace page' spelling in a new script (MDL-DEPR001, 0 tolerated for this file). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QiMsnXa9crge2qnSk9S7Zn
mx: resolve the exact version before PATH; model writers refuse another release (#2681)
…24rqgv fix: a qualified final attribute in an association path is not qualified twice
main fixed the same defect independently (6e6045c, #2671). The two disagree on one case: `Assoc/Mod.Special.Attr` naming a specialization the path never stepped to. main refuses it (its test asserts that); #1984 read it as an implicit downcast. main's behaviour is kept: the explicit `Assoc/Mod.Special/Mod.Special.Attr` stores the same downcast, and main also reads `Assoc/Entity.Attr` in the destination's module, which #1984 did not. From #1984 this keeps the sort-by route test and the bug-test script; its resolver cases duplicate (or contradict) main's 2671 test and are dropped, as are its CHANGELOG entry and finding, which main already carries. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QiMsnXa9crge2qnSk9S7Zn
Integrate mendixlabs#1984 (sort by Assoc/Module.Entity.Attr): its sort-by test and bug-test script; main's #2671 fix kept
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Syncs
ako/mxcli:maininto upstream: 4 commits since the last sync (#1981) — an OData import thatmx checkrefused, an Agent Editor check keyed on the project's version, a version note onwidget describe, and a Project pane that loads large apps.Fixes #1944, fixes #1952.
Integrations
create external entitiesimportsEdm.Dateas a DateTime that is not localized. It was mapped likeEdm.DateTime, localized, andmx checkrefused every such attribute with CE4598 ("The remote type of this attribute is 'Edm.Date', which does not support Localize"); Studio Pro's import sets Localize off. A single-entitycreate or modify external entitynow lets the remote type decide after carrying the stored value, so re-importing repairs entities an earlier build wrote. Measured with mx check 11.14.0: one CE4598 before, 0 after, and re-running either import clears the old project's error.create agentwith a Model and no SelectedModel on an Agent Editor 1.x project, which does not need one. Measured from each package's extension code (mx check runs no Agent Editor checks): the AE018 guard first appears in 1.3.0, and the startup import readsselectedModelfrom 2.2. One verdict keyed on the installed version now serves both phases: nothing before 1.3, the AE018 error from 1.3 to 2.1, both from 2.2.Widgets
widget describesays which widget version its example holds for (widget describe shows the installed widget definition without saying it is version specific #1944). The properties and the MDL example come from the package installed in the project with-p, or from mxcli's embedded template without; shown with no note, an example from Maps 3.2.2 read as valid for 5.0.0, which has no such property. A Note line (versionNotein JSON) names the package and version.Companion
project-treeprinted indented JSON, so a 4.5 MB app's pane failed with "Unterminated string in JSON". The tree is now one line (56% of the indented size on the test app), and output at the limit is reported as cut off instead of as a parse error